import {Component} from '@angular/core';
import {
    AlertController, IonicPage, LoadingController, NavController, NavParams, Platform, ToastController,
    ViewController
} from 'ionic-angular';
import {SystemService} from "../../service/SystemService";
import {BasePage} from "../../BasePage";
import {UserManager} from "../../../framework/manager/UserManager";
import {Log} from "../../../framework/utils/Log";

/**
 * Generated class for the PlanPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */


@Component({
    selector: 'page-feeApplyDom',
    templateUrl: 'feeApplyDom.html',
    providers: [SystemService]
})
export class FeeApplyDom extends BasePage {
    private static TAG:string="FeeApplyDom";
    list: Array<any>= [];
    searchName: string;

    constructor(public navCtrl: NavController, public navParams: NavParams, public view: ViewController, public sys: SystemService, public platform: Platform,
                public loadingCtrl: LoadingController,
                public toastCtrl: ToastController,
                public alertCtrl: AlertController) {
        super(platform, loadingCtrl, toastCtrl, alertCtrl);
        this.list = navParams.data.list;
    }

    ionViewDidLoad() {
        Log.w(FeeApplyDom.TAG,"ionViewDidLoad");
    }

    selectHandler(item) {
        let newItem = {
            data: item,

        };
        this.view.dismiss(newItem);
    }


    close(){

        //this.change.emit(this.isShow);
        if(this.view){
            this.view.dismiss(null, '', {animate: false});

        }

    }

}
